<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Session 结果</title>
</head>
<body>
用户名：
<%=
	session.getAttribute("username")
%>
<br/>
登录时间：
<%=
	session.getAttribute("logindate")
%>
<br/>
美波时间：<%= session.getAttribute("mytime") %>

split:
<%
	String msg = "名字,数量,1-名字2,数量2,2";
	String[] arrStr = msg.split("-");
	//for(String item : arrStr){
		out.println(arrStr[0]);
	//}
%>
</body>
</html>